package com.sakura.oj.model.dto.solution;

import com.sakura.oj.common.PageRequest;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.List;

/**
 * 题解查询
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class SolutionQueryRequest extends PageRequest implements Serializable {

    /**
     * 题解记录id
     */
    private Long id;

    /**
     * 题目id
     */
    @NotBlank(message = "题目id不能为空")
    private Long problemId;

    /**
     * 题解标题
     */
    private String title;

    /**
     * 代码的语言
     */
    private String language;

    /**
     * 标签id
     */
    private List<Integer> tags;

}
